package com.ys.web.pay;

/**
 * 项目业务常量配置
 */
public class RedisKeyToYs {

    /** 发红包锁 */
    public static final String REDIS_LOCK_RED_GIVE_PREFIX = "redis-lock-red-give-";
    /** 抢红包锁 */
    public static final String REDIS_LOCK_RED_GET_PREFIX = "redis-lock-red-get-";
    /** 发转账锁 */
    public static final String REDIS_LOCK_TRANSFER_GIVE_PREFIX = "redis-lock-transfer-give-";
    /** 抢转账锁 */
    public static final String REDIS_LOCK_TRANSFER_GET_PREFIX = "redis-lock-transfer-get-";
    /** 用户账户锁 动账时使用 */
    public static final String REDIS_LOCK_USER_ACCOUNT_PREFIX = "redis-lock-account-user-";
    /** 建群锁 */
    public static final String REDIS_LOCK_CREATE_GROUP_PREFIX = "redis-lock-create-group-";
    /** 邀请进群锁 */
    public static final String REDIS_LOCK_ADD_GROUP_PREFIX = "redis-lock-add-group-";
    /** 充值订单锁 充值成功上涨时使用 */
    public static final String REDIS_LOCK_DEPOSIT_ORDER_PREFIX = "redis-lock-deposit-order-";
    /** 提现锁 */
    public static final String REDIS_LOCK_USER_WITHDRAW_PREFIX = "redis-lock-withdraw-user-";

    /** 红包-转账id */
    public static final String REDIS_RED_PREFIX = "redis-red:prefix:";
    /** 单个红包 */
    public static final String REDIS_RED_SINGLE_PREFIX = "redis-red-single:prefix:";
    /** 群红包-手气红包列表 */
    public static final String REDIS_RED_GROUPLUCK_PREFIX = "redis-red-groupluck:prefix:";
    /** 群红包-手气红包 已抢红包用户*/
    public static final String REDIS_RED_USER_GROUPLUCK_PREFIX = "redis-red-user-groupluck:prefix:";
    /** 群红包-普通红包列表 */
    public static final String REDIS_RED_GROUPNORMAL_PREFIX = "redis-red-groupnormal:prefix:";
    /** 群红包-普通红包 已抢红包用户 */
    public static final String REDIS_RED_USER_GROUPNORMAL_PREFIX = "redis-red-user-groupnormal:prefix:";
    /** 群红包-专属红包列表 */
    public static final String REDIS_RED_GROUPPERSONAL_PREFIX = "redis-red-grouppersonal:prefix:";
    /** 群红包-专属红包 已抢红包用户 */
    public static final String REDIS_RED_USER_GROUPPERSONAL_PREFIX = "redis-red-user-grouppersonal:prefix:";
    /** 群红包-专属红包 分配红包用户 */
    public static final String REDIS_RED_USER_GROUPPERSONAL_DISTRIBUTE_PREFIX = "redis-red-user-grouppersonal-distribute:prefix:";

    /** 转账-转账id */
    public static final String REDIS_TRANSFER_PREFIX = "redis-transfer:prefix:";
    /** 单个转账 */
    public static final String REDIS_TRANSFER_SINGLE_PREFIX = "redis-transfer-single:prefix:";

    /** 建群间隔时间缓存 */
    public static final String REDIS_CREATE_GROUP_PREFIX = "redis-create-group-prefix-";
}
